package com.zxl.common.model.bo.goods;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author zxw
 * @date 2023/3/31
 */
@Data
public class GoodsAdd {
    @ApiModelProperty(value = "修改时传商品id")
    private String id;

    @ApiModelProperty(value = "商品名称", required = true)
    @NotBlank(message = "名称不能为空")
    private String goodsName;

    @ApiModelProperty("规格")
    @NotBlank(message = "规格不能为空")
    private String goodsSpecification;

    @ApiModelProperty("商品价格")
    @NotNull(message = "商品价格不能为空")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "商品主图", required = true)
    @NotNull(message = "主图不能为空")
    private String goodsMainImage;

    @ApiModelProperty(value = "新品状态 1->启用")
    private Integer isNew;

    @ApiModelProperty("商品详情图")
    @NotEmpty(message = "详情图不能为空")
    private List<String> goodsDetailImage;

    @ApiModelProperty("商品小图")
    @NotNull(message = "主图不能为空")
    private String goodsSmallImage;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("商品库存")
    @NotNull(message = "库存不能为空")
    private Integer goodsStock;

}
